<template>
    <div>
        <h1>分类</h1>
        <button @click="goHome">goHome</button>
        <button @click="$router.push({name:'shouxuan'})">go shouxuan</button>
        <ul>
            <li>
                <router-link :to="{name:'remen'}">热门</router-link>
            </li>
            <li>
                <router-link :to="{name:'shuma'}">数码</router-link>
            </li>
        </ul>
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        methods:{
            goHome(){
                this.$router.go(-1);
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>